<?php $this->load->view('layout/header'); ?>
<div id="container">
<!--查询表单开始-->
<div id="DivQuery">
    <div id="floatBoxBg" style="filter: alpha(opacity=0); opacity: 0;">
    </div>
    <div id="floatBox" class="floatBox">
        <div id="drag" class="title" onmousedown="DragDialog()">
            <h4>
                查询</h4>
            <span>关闭</span></div>
        <div class="content">
            <form action="<?php echo site_url('video/index');?>" method="post">
                <table width="100%" border="0" cellpadding="0" cellspacing="0" class="table_query">
                    <tr class="table_query_row">
                        <td style="width: 15%" align="right">
                            视频名称：
                        </td>
                        <td colspan="3">
                            <input type="text" name="videoname">
                        </td>
                    </tr>
                    <tr class="table_query_row">
                        <td style="width: 15%" align="right">
                            推荐：
                        </td>
                        <td>
                            <span id="radIsClose">
                                <input id="isrecommend_0" type="radio" name="isrecommend" value="-1" checked="checked" /><label for="isrecommend_0">不限</label>
                                <input id="isrecommend_1" type="radio" name="isrecommend" value="0" /><label for="isrecommend_1">未推荐</label>
                                <input id="isrecommend_2" type="radio" name="isrecommend" value="1" /><label for="isrecommend_2">已推荐</label>
                            </span>
                        </td>
                        <td style="width: 15%" align="right">
                            状态：
                        </td>
                        <td>
                            <span id="radIsClose">
                                <input id="radIsClose_0" type="radio" name="isclose" value="-1" checked="checked" /><label for="radIsClose_0">不限</label>
                                <input id="radIsClose_1" type="radio" name="isclose" value="0" /><label for="radIsClose_1">开放</label>
                                <input id="radIsClose_2" type="radio" name="isclose" value="1" /><label for="radIsClose_2">关闭</label>
                            </span>
                        </td>
                    </tr>
                    <tr class="table_query_btn">
                        <td align="right" style="width: 15%">
                        </td>
                        <td>
                            <input type="submit" value="查询" onclick="javascript:WebForm_DoPostBackWithOptions(new WebForm_PostBackOptions(&quot;btnQuery&quot;, &quot;&quot;, false, &quot;&quot;, &quot;Config.aspx&quot;, false, false))" id="btnQuery" />
                            <input type="button" value="返回" onclick="javascript:HiddenSearchDialog();" />
                        </td>
                        <td align="right" style="width: 15%">
                        </td>
                        <td>
                        </td>
                    </tr>
                </table>
            </form>
        </div>
    </div>
</div>
<!--查询表单结束-->
<!--导航开始-->
<table width="100%" border="0" cellpadding="0" cellspacing="0" class="table_nav">
    <tr>
        <td>
            视频管理&gt;管理列表
        </td>
    </tr>
</table>
<!--导航结束-->
<!--操作选项开始-->
<table width="100%" border="0" cellpadding="0" cellspacing="0" class="table_op">
    <tr>
        <td>
            操作选项：
            <a href="<?php echo site_url('video/video_add');?>">添加视频</a>
            <a onclick="javascript:return checkEdit(this);" name="videoid" href="javascript:;" src="<?php echo site_url('video/video_add').'/';?>">修改视频</a>
            <a onclick="javascript:return checkDel(this);" name="videoid" href="javascript:;" src="<?php echo site_url('video/delete_info/index/videoid/video').'/';?>">删除视频</a>
            <a onclick="javascript:return checkOperate(this);" name="videoid" src="<?php echo site_url('video/edit_close/index/videoid/video/0/').'/'?>" id="lbtnOpen" href="javascript:;)">批量开放</a>
            <a onclick="javascript:return checkOperate(this);" name="videoid" src="<?php echo site_url('video/edit_close/index/videoid/video/1/').'/'?>" id="lbtnClose" href="javascript:;)">批量关闭</a>
            <?php if($filter == 0){ ?>
                <a href="javascript:SearchDialog()">查询视频</a>
            <?php }else{ ?>
                <a href="<?php echo site_url('video/index');?>">撤销查询</a>
            <?php } ?>
        </td>
    </tr>
</table>
<!--操作选项结束-->
<!--列表开始-->
<table width="100%" border="0" cellpadding="0" cellspacing="0" class="table_list" id="TbList">
    <tr class="table_list_title">
        <td style="width: 2%">
            <input type="checkbox" name="checkbox" value="checkbox" onclick="javascript:checkAll(this,'jobid')" />
        </td>
        <td style="width: 5%" onclick="javascript:GoTo('?OrderKey=ConfigID&AscDesc=desc&txtWebsiteName=&radIsClose=-1&page=1')" title="点击排序">
            编号
        </td>
        <td style="width: 10%" onclick="javascript:GoTo('?OrderKey=LanguageVer&AscDesc=desc&txtWebsiteName=&radIsClose=-1&page=1')" title="点击排序">
            视频名称
        </td>
        <td style="width: 10%" onclick="javascript:GoTo('?OrderKey=WebsiteName&AscDesc=desc&txtWebsiteName=&radIsClose=-1&page=1')" title="点击排序">
            栏目分类
        </td>
        <td style="width: 5%" onclick="javascript:GoTo('?OrderKey=AddTime&AscDesc=desc&txtWebsiteName=&radIsClose=-1&page=1')" title="点击排序">
            访问次数
        </td>
        <td style="width: 5%" onclick="javascript:GoTo('?OrderKey=AddTime&AscDesc=desc&txtWebsiteName=&radIsClose=-1&page=1')" title="点击排序">
            排序号
        </td>
        <td style="width: 5%" onclick="javascript:GoTo('?OrderKey=AddTime&AscDesc=desc&txtWebsiteName=&radIsClose=-1&page=1')" title="点击排序">
            创建人
        </td>
        <td style="width: 10%" onclick="javascript:GoTo('?OrderKey=AddTime&AscDesc=desc&txtWebsiteName=&radIsClose=-1&page=1')" title="点击排序">
            创建时间
        </td>
        <td style="width: 5%" onclick="javascript:GoTo('?OrderKey=IsClose&AscDesc=desc&txtWebsiteName=&radIsClose=-1&page=1')" title="点击排序">
            状态
        </td>
    </tr>
    <?php foreach($list as $key=>$val) : ?>
        <tr class="table_list_row_normal">
            <td style="width: 2%">
                <input name="videoid" type="checkbox" id="videoid" value="<?php echo $val['videoid'];?>"  />
            </td>
            <td style="width: 5%" >
                <?php echo $val['videoid']?>
            </td>
            <td style="width: 10%" >
                <a href="<?php echo site_url('video/video_add').'/'.$val['videoid'];?>">
                    <?php echo $val['videoname']?>
                </a>
                <?php if($val['isrecommend'] == 1){ ?>
                    <span style="color: red">|荐</span>
                <?php } ?>
            </td>
            <td style="width: 10%" >
                <?php echo $val['classname']?>
            </td>
            <td style="width: 5%" >
                <?php echo $val['clicknum']?>
            </td>
            <td style="width: 5%" >
                <?php echo $val['listid']?>
            </td>
            <td style="width: 5%" >
                <?php echo $val['adminname']?>
            </td>
            <td style="width: 10%" >
                <?php echo $val['addtime']?>
            </td>
            <td style="width: 5%" >
                <?php
                if($val['isclose'] == 0){
                    echo '开放';
                }elseif($val['isclose'] == 1){
                    echo '<font color="red">关闭</font>';
                }
                ?>
            </td>
        </tr>
    <?php endforeach; ?>
</table>
<?php $pagination->show();?>
<script src="/static/bk/js/table.js" type="text/javascript"></script>
<?php $this->load->view('layout/footer'); ?>